import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router'
import { createPinia } from 'pinia'
import persistentData from '@/store/persistentData'

const app = createApp(App)

// 初始化默认一个window.$cancelRequest()
window.$cancelRequest = () => { }


app
  .use(createPinia())
  .use(router)
  .mount('#app')

// pinia数据持久化
persistentData()